import cv2
video=cv2.VideoCapture("yzbf.mp4")
while(video.isOpened()):
    retval,image=video.read()
    cv2.imshow("Video",image)
    key=cv2.waitKey(1)
    if key==32:
        break
        capture.release()
        cv2.destroyAllWindows